
package com.yjh.admin.server.sys.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.yjh.admin.config.data.DataSource;
import com.yjh.admin.entity.user.SysUserRole;
import com.yjh.admin.mapper.user.SysUserRoleMapper;
import com.yjh.admin.server.sys.SysUserRoleService;
import org.springframework.stereotype.Service;

/**
 * 用户角色表
 *
 * @author GuoBin
 * @date 2020-07-10 10:57:08
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {



    @Override
    @DataSource("sys_db")
    public int saveSysUserRole(SysUserRole sysUserRole) {
        return  baseMapper.insert(sysUserRole);
    }
}
